package cn.ryh.designpatterndemo.decoratorpattern;

/**
 * @ClassName ConcreteDecoratorOne
 * @Description 具体装饰角色
 * @Author RaoYH
 * @Date 2019/4/25
 */
public class ConcreteDecoratorTwo extends Decorator {
    public ConcreteDecoratorTwo(Component _component) {
        super(_component);
    }
    private void methodTwo(){
        System.out.println("methodTwo：点击登录按钮");
    }

    @Override
    public void login() {
        this.methodTwo();
        super.login();
    }
}
